package com.ziyun.erp.modules.member.entity;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 用户钱包表
 *
 * @author jiangli
 * @email
 * @date 2018-08-08 13:57:09
 */
@TableName("user_wallet")
public class UserWalletEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 用户id
     */
    @TableId
    private Integer userId;
    /**
     * 支付密码
     */
    private String payPassword;
    /**
     * 会员账户余额
     */
    private BigDecimal advance;
    /**
     * 信用额度，大于0开启用户信用支付
     */
    private Integer creditLimit;
    /**
     * 当前可用信用
     */
    private BigDecimal creditUse;
    /**
     * 积分
     */
    private Integer point;
    /**
     * 预存款冻结金额
     */
    private BigDecimal advanceFreeze;
    /**
     * 当前冻结积分(暂时停用)
     */
    private Integer pointFreeze;

    /**
     * 商户奖励金
     */
    private BigDecimal scholarship;

    /**
     * 设置：用户id
     */
    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    /**
     * 获取：用户id
     */
    public Integer getUserId() {
        return userId;
    }

    /**
     * 设置：支付密码
     */
    public void setPayPassword(String payPassword) {
        this.payPassword = payPassword;
    }

    /**
     * 获取：支付密码
     */
    public String getPayPassword() {
        return payPassword;
    }

    /**
     * 设置：会员账户余额
     */
    public void setAdvance(BigDecimal advance) {
        this.advance = advance;
    }

    /**
     * 获取：会员账户余额
     */
    public BigDecimal getAdvance() {
        return advance;
    }

    /**
     * 设置：信用额度，大于0开启用户信用支付
     */
    public void setCreditLimit(Integer creditLimit) {
        this.creditLimit = creditLimit;
    }

    /**
     * 获取：信用额度，大于0开启用户信用支付
     */
    public Integer getCreditLimit() {
        return creditLimit;
    }

    /**
     * 设置：当前可用信用
     */
    public void setCreditUse(BigDecimal creditUse) {
        this.creditUse = creditUse;
    }

    /**
     * 获取：当前可用信用
     */
    public BigDecimal getCreditUse() {
        return creditUse;
    }

    /**
     * 设置：积分
     */
    public void setPoint(Integer point) {
        this.point = point;
    }

    /**
     * 获取：积分
     */
    public Integer getPoint() {
        return point;
    }

    /**
     * 设置：预存款冻结金额
     */
    public void setAdvanceFreeze(BigDecimal advanceFreeze) {
        this.advanceFreeze = advanceFreeze;
    }

    /**
     * 获取：预存款冻结金额
     */
    public BigDecimal getAdvanceFreeze() {
        return advanceFreeze;
    }

    /**
     * 设置：当前冻结积分(暂时停用)
     */
    public void setPointFreeze(Integer pointFreeze) {
        this.pointFreeze = pointFreeze;
    }

    /**
     * 获取：当前冻结积分(暂时停用)
     */
    public Integer getPointFreeze() {
        return pointFreeze;
    }

    /**
     * 设置：商户奖励金
     */
    public void setScholarship(BigDecimal scholarship) {
        this.scholarship = scholarship;
    }

    /**
     * 获取：商户奖励金
     */
    public BigDecimal getScholarship() {
        return scholarship;
    }


}
